import request from '@/utils/request.js'

export function postOrderList(data) {
	return request.post('/order/list', data)
}

export function postOrderCreate(data) {
	return request.post('/order/create', data)
}
export function postOrderUpdate(data) {
	return request.post('/order/status/update', data)
}

export function getRefund(orderId) {
	return request.get(`/order/refund/${orderId}`, {})
}

export function postEvaluate(data) {
	return request.post('/order/evaluate', data)
}
export function getOrder(id) {
	return request.get(`/order/${id}`, {})
}

export function postOrderPay(data) {
	return request.post('/order/pay', data)
}

export function postPayOfBalance(orderId) {
	return request.post(`/wallet/payOfBalance?orderId=${orderId}`)
}

export function postRechargr(amount) {
	return request.post(`/wallet/deposit?amount=${amount}`)
}


/**
 * 续时接口
 */
export function postOrderAddHourApi(data) {
	return request.post('/order/addHour',data)
}

/**
 * 获取充值列表
 */


export function getDepositParamApi(data) {
	return request.get('/wallet/deposit/param', data)
}
